Socket
Socket
Sign inDemoInstall

async-bugs

Package Overview
Dependencies
9
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    async-bugs

Get fuller stack traces in nodejs for async stacks


Version published
Weekly downloads
1
decreased by-83.33%
Maintainers
1
Install size
164 kB
Created
Weekly downloads
 

Readme

Source

async-bugs

Create fuller stacktraces, remove all internal lines and gray out modules.

You probably don't want to run this in production. It's great for development and testing, but in production it will slow your app down a great deal.

Example Conditional Require

if (process.env.NODE_ENV !== 'production') {
  require('async-bugs')
}

Modes

Normal

The normal mode uses trace and trace-cleaner to give you stack traces that are organised and minimised to only the stacks still in scope.

Verbose

There are some cases the normal mode can not handle. For example if you are doing some crazy Error extending and it still loses the stack trace. In that case, the verbose mode simple logs every async call and outputs it on error. It'll be long, but the call should be there.

Installation

npm install --save async-bugs

Example Usage

Include in your app:

Normal

require('async-bugs')

Verbose

require('async-bugs/verbose')

Or add when running node:

Normal

node -r async-bugs

Verbose

node -r async-bugs/verbose

Keywords

FAQs

Last updated on 14 Aug 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc